package com.example.administrator.statemachine;

import android.content.Context;

/**
 * Created by Administrator on 2017/7/28.
 */

public class Cotorl {
    State state = new Loginout();
    private static Cotorl cotorl = new Cotorl();

    public void setState(State state) {
        this.state = state;
    }

    public static Cotorl instance() {
        return cotorl;
    }

    public void talk(Context context) {
        state.talk(context);
    }

}
